<?php
/**
 * XmlRpc解码抽象类
 *
 * @version $Id: AbstractXmlRpcDecoder.php 312 2008-04-23 16:29:38Z iwind $
 * @package net.4kiki.rai.format.xmlrpc.decoder
 * @since 0.0.3
 */
abstract class AbstractXmlRpcDecoder implements XmlRpcDecoder {
	private $xmlString;
	private $charset;
	
	/**
	 * 构造器
	 *
	 * @param string $xmlString XML字符串
	 * @param string $charset 字符集
	 */	
	public function __construct($xmlString, $charset = "UTF-8") {
		$this->xmlString = $xmlString;
		$this->charset = $charset;
	}
	
	/**
	 * 取得XML字符串
	 *
	 * @return string
	 */
	public function getXml() {
		return $this->xmlString;
	}
	
	/**
	 * 取得字符集
	 *
	 * @return string
	 */
	public function getCharset() {
		return $this->charset;
	}
}

?>